home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / news / inn1.000 / inn1.4sec-linux-src.tar / inn / samples / default < prev    next >
Text File  |  1993-12-22  |  568b  |  23 lines

  1. #! /bin/sh
  2. ##  $Revision: 1.10 $
  3. ##  Default control-message handler
  4.  
  5. ##  Set prog to null; that will leave the name of the message in $1
  6. PROG=default
  7. ##  Some shells don't pass in $* unless we explicitly pass it in here.
  8. ##  =()<. @<_PATH_PARSECTL>@ "$@">()=
  9. . /news/bin/control/parsecontrol "$@"
  10.  
  11. case ${ACTION} in
  12. mail)
  13.     sed -e 's/^~/~~/' <${ARTICLE} \
  14.         | ${MAILCMD} -s "Unknown control message by ${FROM}" ${NEWSMASTER}
  15.     ;;
  16. doit|logit)
  17.     ${WRITELOG} ${LOGFILE} "Unknown control message by ${FROM}" \
  18.         ${NEWSMASTER} <${ARTICLE}
  19.     ;;
  20. esac
  21.  
  22. exit
  23.